﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Meraz.Core.Model
{
    public class Person
    {
        public string Affiliation
        {
            get { return this.AffiliationType.ToString(); }
            set { this.AffiliationType = (AffiliationType)Enum.Parse(typeof(AffiliationType), value); }
        }
        public AffiliationType AffiliationType { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Gender
        {
            get { return this.GenderType.ToString(); }
            set { this.GenderType = (GenderType)Enum.Parse(typeof(GenderType), value); }
        }
        public GenderType GenderType { get; set; }
        public string Race
        {
            get { return this.RaceType.ToString(); }
            set { this.RaceType = (RaceType)Enum.Parse(typeof(RaceType), value); }
        }
        public RaceType RaceType { get; set; }
        public string Status
        {
            get { return this.StatusType.ToString(); }
            set { this.StatusType = (StatusType)Enum.Parse(typeof(StatusType), value); }
        }
        public StatusType StatusType { get; set; }
        public int ID { get; set; }
        public List<Alias> Aliases { get; set; }
    }
}
